package org.karelun.gef.figure;

import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.swt.graphics.Image;
import org.karelun.gef.helper.ImageResource;

public class AttributeFigure extends Figure {
	
	private Label label;
	
	public AttributeFigure() {
		label = new Label();
		Image image = ImageResource.getImage(ImageResource.ATTRIBUTE);
		label.setIcon(image);
//		setOpaque(true);
//		BorderLayout layout = new BorderLayout();
//		setLayoutManager(layout);
//		add(label);
	}

	public void setBounds(Rectangle rect) {
		super.setBounds(rect);
		label.setBounds(rect);
	}
}